// app.js
App({
  globalData: {
    screenWidth: 0,
    screenHeight: 0,
    statusBarHeight: 0,
    deviceRadio: 0
  },
  // 小程序初始化完成 回调
  onLaunch() {
    // 1.获取设备信息
    const {
      screenHeight,
      screenWidth,
      statusBarHeight
    } = wx.getSystemInfoSync()
    const deviceRadio = screenHeight / screenWidth

    this.globalData = {
      screenHeight,
      screenWidth,
      statusBarHeight,
      deviceRadio
    }

    // this.handleLogin()
  }
})